﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Default2" Title="Атаман мебель: Авторизация" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="pagetitle">Авторизация</div>
        <div class="contact">
            <div class="clear">
                <asp:Login ID="Login1" runat="server" CreateUserUrl="~/Register.aspx" CssClass="loginForm" >
                    <LayoutTemplate>
                        <div class="usernameForm">
                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" Text="Учётная запись:" CssClass="label" />
                            <asp:TextBox ID="UserName" runat="server" CssClass="form" />
                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" 
                            ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="Login1">*
                            </asp:RequiredFieldValidator>
                         </div>
                         <div class="passwordForm">
                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" Text="Пароль:" CssClass="label" />
                            <asp:TextBox ID="Password" runat="server" TextMode="Password" CssClass="form" />
                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" 
                            ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="Login1">*
                            </asp:RequiredFieldValidator>
                         </div>
                         <asp:CheckBox ID="RememberMe" runat="server" Text="Запомнить" CssClass="rememberMe" />
                         <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                         <asp:HyperLink ID="CreateUserLink" runat="server" NavigateUrl="~/Register.aspx" Text="Зарегистрироваться" CssClass="registerLink" />
                         <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Войти" ValidationGroup="Login1" CssClass="loginButton" />
                    </LayoutTemplate>
                </asp:Login>
            </div>
        </div>
    
</asp:Content>